<template>
  <transition name="fade" mode="out-in">
      <slot></slot>
  </transition>
</template>

<script>
export default {
  name: 'FadeAnimation'
}
</script>

<style lang="stylus" scoped>
    .fade-enter-active, .fade-leave-active
      transition: transform .3s
    .fade-enter, .fade-leave-active
      transform: translate3d(100%, 0, 0)
</style>
